<!DOCTYPE html>
<html class="ui-page-login">

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>资讯详情</title>
    <link href="../../css/mui.css" rel="stylesheet"/>
    <link href="../../css/reset.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../../css/iconfont.css" />
    <link rel="stylesheet" href="../../css/dashi.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="address=no">
    <script src="../../js/jquery.min.js"></script>
    <script type="text/javascript">
        var docEl = document.documentElement;
        var clientWidth = docEl.clientWidth;
        docEl.style.fontSize = (clientWidth / 10) + 'px';
        $(document).ready(function () {
            (function (doc, win) {
                var docEl = doc.documentElement,
                        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                        recalc = function () {
                            var clientWidth = docEl.clientWidth;
                            docEl.style.fontSize = (clientWidth / 10) + 'px';
                        };

                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        });
    </script>
</head>

<body>
<article class="mui-content zixun-detail">
     <div class="zixun-detail-main">
         <!--<p class="zixun-detail-main-tit">dsadsadsa</p>-->
         <!--<p class="zixun-detail-main-time">dsadsa</p>-->
         <!--<div class="zixun-detail-main-tu">-->
             <!--<img class="zixun-detail-main-tu-img" src="../../img/dashi.jpg">-->
         <!--</div>-->
         <!--<p class="zixun-detail-main-content">dsadsa</p>-->
     </div>
</article>

<script src="../../js/jquery-2.1.1.min.js"></script>
<script src="../../js/mui.min.js"></script>
<script src="../../js/main.js"></script>
<script>
    $(document).ready(function(){
        var user =   getUserInfo();
        var user_token = user.userToken;
        var news_id = getUrlParam("news_id");
        var event = {
            getList: function () {
                var data = {
                    apiCode: '/News/newsInfo',
                    user_token:user_token,
                    news_id:news_id
                };
                http(data, function (responed) {
                  var  goodinfo = responed.data;
                    if(responed.success==1)  {
                        var temp = "";
                        temp +=   ' <p class="zixun-detail-main-tit">'+goodinfo.news_title+'</p>'+
                                '<p class="zixun-detail-main-time">'+goodinfo.create_time+'</p>'+
                                '<div class="zixun-detail-main-tu">'+
                                '<img class="zixun-detail-main-tu-img" src="'+goodinfo.news_img+'">'+
                                '</div>'+
                                '<p class="zixun-detail-main-content">'+goodinfo.news_content+'</p>';

                        $('.zixun-detail-main').append(temp);
                    }else{
                        alert(responed.msg);
                        return false
                    }
                });
            },
        }
        event.getList();
    })
</script>
</body>
</html>

